package com.bianmaba.batch.example.db.bean;

import com.bianmaba.spring.data.jpa.domain.entity.UuidIdentityEntity;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * @program: spring-batch-examples
 * @description:
 * @author: Chenjiabin
 * @create: 2019/1/8 11:02
 **/
@Entity
@Data
@DynamicInsert
@DynamicUpdate
public class Log extends UuidIdentityEntity {
    @Column(length = 32)
    private String name;
    @Column
    private String dt;
    @Column
    private int logins;
}
